package com.chucang.shucang.sms.feign;

import com.chucang.shucang.common.base.constant.SecurityConstant;
import com.chucang.shucang.common.base.utils.R;
import com.chucang.shucang.sms.feign.vo.BlindBoxBaseEntity;
import com.chucang.shucang.sms.feign.vo.CollectionBaseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/4 18:22
 * @description
 */
@FeignClient(contextId = "sms-pms", value = "shucang-pms")
public interface PmsService {

    @GetMapping("/pms/collectionbase/getCollectionBaseInfo/{id}")
    R<CollectionBaseEntity> getCollectionBaseInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);

    @GetMapping("/pms/blindboxbase/getBlindBoxBaseInfo/{id}")
    R<BlindBoxBaseEntity> getBlindBoxBaseInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);

    @GetMapping("/pms/blindboxbase/updateBlindBoxBase/{id}/{surplus}")
    R<String> updateBlindBoxBase(@PathVariable("id") Long id, @PathVariable("surplus") Integer surplus, @RequestHeader(SecurityConstant.FROM) String from);

    @GetMapping("/pms/collectionbase/updateCollectionBase/{id}/{surplus}")
    R<String> updateCollectionBase(@PathVariable("id") Long id, @PathVariable("surplus") Integer surplus, @RequestHeader(SecurityConstant.FROM) String from);
}
